package cn.team11.smarteye.adapter;

import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by Murphy on 2017/11/1.
 */

public class DeviceDetailPageAdatper extends FragmentPagerAdapter{

    private Context mContext;
    private List<Fragment> mFragments;

    public DeviceDetailPageAdatper(FragmentManager fm, Context c, List<Fragment> fragments) {
        super(fm);
        this.mContext = c;
        this.mFragments = fragments;
    }

    @Override
    public Fragment getItem(int i) {
        return mFragments.get(i);
    }

    @Override
    public int getCount() {
        return mFragments.size();
    }


}
